package 草稿;

/**
 * @projectName: JAVA编程
 * @package: 草稿
 * @className: E
 * @author: hhy帅
 * @description: TODO
 * @date: 2021/11/8 8:42
 */
public class E {
    public static void main(String[] args)
    {
        Son son = new Son();
    }
}

class Grandpa
{
    public Grandpa()
    {
        System.out.println("grandpa");
    }
}

class Father extends Grandpa
{
    public Father()
    {
        System.out.println("father");
    }

}
class Son extends Father{
    public Son(){
        System.out.println("son");
    }
}
